<?php

namespace app\xs_article\controller\api;

use app\xs_article\facade\service\CategoryServiceFacade;
use xsframe\base\ApiBaseController;

class Category extends ApiBaseController
{
    public function getList(): \think\response\Json
    {
        $category = CategoryServiceFacade::getList(['uniacid' => $this->uniacid, 'enabled' => 1, 'deleted' => 0],"id,name,style_type");
        $result = [
            'categoryList' => $category
        ];
        return $this->success($result);
    }
}
